package com.xli.organ.ou.frameou.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.organ.ou.frameou.entity.FrameOu;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IFrameOuService extends IService<FrameOu> {

    boolean insert(@NotNull FrameOu frameOu);

    boolean delete(@NotNull Long id);

    boolean update(@NotNull FrameOu frameOu);

    FrameOu find(@NotNull Long id);

    List<FrameOu> findList(@NotNull QueryWrapper<FrameOu> qw);

    Page<FrameOu> findList(@NotNull QueryWrapper<FrameOu> qw,@NotNull  long current,@NotNull  long size);

    long findCount(@NotNull QueryWrapper<FrameOu> qw);

    List<FrameOu> findAllOuList();

    List<FrameOu> findTopOuList();

    List<FrameOu> findOuListByPid(@NotNull Long pid);

}
